package edu.sctu.zhu.dao;

import edu.sctu.zhu.bean.Fans;
import edu.sctu.zhu.bean.Goods;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhu on 2015/11/11.
 */
@Repository
public interface FansDao extends CrudRepository<Fans,Long>{

    @Query(value = "select * from fans where weixing = ?",nativeQuery = true)
    public Fans findByWeixin(String weixin);
}
